package org.southyin.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @ClassName CmsArticle
 * @Description TODO
 * @Author hasee
 * @Date 2021/10/27
 * @Version 1.0
 **/
public class CmsArticle {

    private Long id;
    private String title;
    private String mdContent;
    private String hmContent;
    private Long uid;
    private Long cid;
    private CmsCustomer author; //作者
    private CmsCategory category; //文章类别
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date publishTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date updateTime;
    private Integer views;
    private Integer giveLike;
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMdContent() {
        return mdContent;
    }

    public void setMdContent(String mdContent) {
        this.mdContent = mdContent;
    }

    public String getHmContent() {
        return hmContent;
    }

    public void setHmContent(String hmContent) {
        this.hmContent = hmContent;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public CmsCustomer getAuthor() {
        return author;
    }

    public void setAuthor(CmsCustomer author) {
        this.author = author;
    }

    public CmsCategory getCategory() {
        return category;
    }

    public void setCategory(CmsCategory category) {
        this.category = category;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public Integer getGiveLike() {
        return giveLike;
    }

    public void setGiveLike(Integer giveLike) {
        this.giveLike = giveLike;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
